package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkcardTpconfirmRequest struct {
	/*
	   服务商确认服务完成信息     */
	TpConfirmRequest *domain.TmallServicecenterWorkcardTpconfirmTpConfirmRequest `json:"tp_confirm_request" required:"true" `
}

func (s *TmallServicecenterWorkcardTpconfirmRequest) SetTpConfirmRequest(v domain.TmallServicecenterWorkcardTpconfirmTpConfirmRequest) *TmallServicecenterWorkcardTpconfirmRequest {
	s.TpConfirmRequest = &v
	return s
}

func (req *TmallServicecenterWorkcardTpconfirmRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.TpConfirmRequest != nil {
		paramMap["tp_confirm_request"] = util.ConvertStruct(*req.TpConfirmRequest)
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardTpconfirmRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
